'''
Created on 29/04/2013

@author: mirta
'''
from flask_wtf import Form
from flask_wtf import TextField
from flask_wtf import SelectMultipleField
from flask_wtf import widgets

from app.validators import Required
#from app.validators import length


class RelacionBuscar(Form):
    """
    Formulario de busqueda de items
    """
    id = TextField()
    nombre = TextField()
    fase = TextField()
  

class RelacionEditable(Form):
    items =  SelectMultipleField('Items:', [Required()], coerce=int,
        widget=widgets.ListWidget(prefix_label=False), option_widget=widgets.RadioInput())  